/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Beans;

/**
 *
 * @author Venus
 */
public class DonViTinh {
    private int MaDVT;
    private int MaNN;
    private String TenDVT;
    public DonViTinh(){
        MaDVT = 0;
        MaNN = 0;
        TenDVT = "";
    }
    public void setMaDVT (int value){
        MaDVT = value;
    }
    public int getMaDVT(){
        return MaDVT;
    }
    public void setMaNN (int value){
        MaNN = value;
    }
    public int getMaNN(){
        return MaNN;
    }
    public void setTenDVT (String value){
        if(value == null)
            value = "";
        TenDVT = value;
    }
    public String getTenDVT(){
        return TenDVT;
    }

}
